package com.yupi.yuapiclientsdk.utils;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;

/**
 * 签名工具
 * @author lkc
 * @version 1.0
 */
public class SignUtils {
    //摘要算法-单向-SHA256-加密
    public static String getSign(String body, String secretKey) {
        Digester md5 = new Digester(DigestAlgorithm.SHA256);
        String context = body + "." + secretKey;
        return md5.digestHex(context);
    }
}
